﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoUpdater.Util
{
    public class Base64
    {
        /// <summary>
        /// base64编码
        /// </summary>
        /// <param name="content"></param>
        /// <returns></returns>
        public static string EncodeBase64Str(string content)
        {
            byte[] bytes = Encoding.Default.GetBytes(content);
            return Convert.ToBase64String(bytes);
        }
    }
}
